<?php
class ModelModuleTopMenu extends Models
{
    public function save($values)
    {
        $this->insert($values, 'top_menu_layouts');
    }
    public function delete($id)
    {
        $this->deleteByAttributes(array('layout_id'=>$id), 'top_menu_layouts');
    }

    public function getAll()
    {
        return $this->findAllModes('top_menu_layouts');
    }

    public function update($values){
        $this->updateByAttributes($values, 'top_menu_layouts');
    }
}